package com.qf.mapper;

import com.qf.pojo.Cart;

import java.util.List;

public interface CartDao {
    /**
     * 根据用户id和商品id查询购物项对象
     * @param uid
     * @param pid
     * @return
     */
    public Cart findCartByUidPid(Integer uid, Integer pid);

    public  void updateCart(Cart cart);

    public void  insertCart(Cart cart);
    public List<Cart> findCartListByUid(Integer id);

    public Cart findById(Integer id);

    public void deleteById(Integer id);
}
